package cn.lili.controller.promotion;

import cn.lili.common.utils.ResultUtil;
import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.promotion.entity.BlindboxRelVO;
import cn.lili.modules.promotion.entity.vos.BlindboxPrizeRecordVO;
import cn.lili.modules.promotion.entity.vos.PintuanVO;
import cn.lili.modules.promotion.service.BlindboxRelService;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import io.swagger.annotations.Api;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * @author xiangqian
 */
@RestController
@Api(tags = "盲盒规则商品关联接口")
@RequestMapping("/promotion/blindbox/rel")
@RequiredArgsConstructor
public class BlindboxRelController {

    private final BlindboxRelService blindboxRelService;

    @PostMapping
    @ApiOperation(value = "添加盲盒规则商品关联")
    public ResultMessage<Boolean> addBlindboxRel(@RequestBody @Validated BlindboxRelVO blindboxRelVO) {
        return ResultUtil.data(blindboxRelService.addBlindboxRel(blindboxRelVO));
    }
}
